/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package project_temple.server;

import java.net.ServerSocket;
import java.net.Socket;

/**
 *
 * @author STARTHERE
 */
public class server {
    private static int i;

    public static void main(String[] args) throws Exception {
        ServerSocket server = new ServerSocket(1111);
        System.out.println("Server is started");
        while (true) {
            Socket socket = server.accept();
            new serverHandler(socket, i).start();
            i++;
        }
    }
}
